﻿#region Includes
using System;
using System.Runtime.InteropServices;
#endregion

namespace GingerGL.Drawing.MD3
{
    //------------------------------------------------------------//
    /// <summary>
    /// IDS TRIANGLE
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
    public struct MD3Triangle
    {
        //--------------------------------------------------------//
        #region Variables
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
        public Int32[] Indexes;                                 //List of offset values into the list of Vertex objects that constitute 
                                                                //the corners of the Triangle object. Vertex numbers are used instead of 
                                                                //actual coordinates, as the coordinates are implicit in the Vertex object. 
                                                                //The triangles have clockwise winding.
        #endregion
        //--------------------------------------------------------//
    }
    //------------------------------------------------------------//
}
